package com.rose.doorto.footbathdoor.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 消息队列消息存储表
 * @Author 李庆超
 * @email 1481791489@qq.com
 * @Package：com.rose.doorto.footbathdoor.pojo
 * @Project：door-to-door
 * @name：QueueMessages
 * @date 2024/09/03 2024/9/3:16:35:
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor

public class QueueMessages {

    @TableField("messageId")
    private String messageId;    //消息ID

    private String content;       //消息的内容

    private Integer status;       //消息的状态

    private Date createdAt;       //创建时间

    private Date updatedAt;       //修改时间

    private Integer id;           //主键

    @TableField("routeKey")
    private String routeKey;      //路由键

    private String exchange;      //交换机

    private int count;        //重试次数,不能超过三次

    private Date tryTime;         //重试时间


}
